export function loadPage(page,resolve) {
	let dir=page.substring(0,page.lastIndexOf("/"));
	let name=page.substring(page.lastIndexOf("/"));
	if (dir.startsWith("/developer")) return require(["@/views/developer"+page.replace("/developer","")], resolve);
	else if (dir.startsWith("/ruoyi")) return require(["@/views/ruoyi"+page.replace("/ruoyi","")], resolve);
	else if (dir=="/oa/autooffice") return require(["@/views/oa/autooffice"+name], resolve);
	else if (dir=="/oa/communication") return require(["@/views/oa/communication"+name], resolve);
	else if (dir=="/oa/humanresources") return require(["@/views/oa/humanresources"+name], resolve);
	else if (dir=="/oa/main") return require(["@/views/oa/main"+name], resolve);
	else if (dir=="/oa/process") return require(["@/views/oa/process"+name], resolve);
	else if (dir=="/oa/sale") return require(["@/views/oa/sale"+name], resolve);
	else if (dir=="/oa/supplychainmana") return require(["@/views/oa/supplychainmana"+name], resolve);
	else if (dir=="/oa/system") return require(["@/views/oa/system"+name], resolve);
	else if (dir=="/oa/process/definition") return require(["@/views/oa/process/definition"+name], resolve);
	else if (dir=="/oa/process/general") return require(["@/views/oa/process/general"+name], resolve);
	else if (dir=="/oa/process/group") return require(["@/views/oa/process/group"+name], resolve);
	else if (dir=="/oa/process/leave") return require(["@/views/oa/process/leave"+name], resolve);
	else if (dir=="/oa/process/leaveCounterSign") return require(["@/views/oa/process/leaveCounterSign"+name], resolve);
	else if (dir=="/oa/process/modeler") return require(["@/views/oa/process/modeler"+name], resolve);
	else if (dir=="/oa/process/todoitem") return require(["@/views/oa/process/todoitem"+name], resolve);
	else if (dir=="/oa/process/user") return require(["@/views/oa/process/user"+name], resolve);

}